package com.milotnt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.milotnt.pojo.ClassTableEntity;

public interface ClassTableMapper extends BaseMapper<ClassTableEntity> {

    //根据 id 删除课程
    Boolean deleteClassByClassId(Long classId);

    //添加课程
    Boolean insertClass(ClassTableEntity classTable);

    //根据 id 查询课表
    ClassTableEntity selectByClassId(Long classId);

    //根据 id 删除已预约的课程
    Boolean deleteOrderByClassId(Long classId);

}
